<?php
namespace app\common\model;

use think\Model;

class MessageSee extends Model
{
    // 指定表名,不含前缀
    protected $name = 'message_see';
        /**
     * 根据条件 查询
     * @param array $arg ['id'=>1,'name'=>'张三']
     * @param null $field
     * @return array
     */
    public function getListByArg($arg,$field='*')
    {
        return $this->where($arg)->field($field)->select();
    }
	
	 public function getListByArgOne($arg,$field='*')
    {
        return $this->where($arg)->field($field)->find();
    }
}
